﻿<?php include("inc/conn.inc");
$i_rs=@mysql_query("select * from jm_list where id='".$_GET['id']."'");
$i_row=@mysql_fetch_array($i_rs);

$m_rs=@mysql_query("select id,m_type,m_user,m_name,m_cname,m_sex,c_type,c_mode,m_ts_tel,m_pic from member where id='$i_row[member_id]'");
$m_row=@mysql_fetch_array($m_rs);

if($m_row['m_type']==6){
   $m_url="http://$m_row[m_user].sandib2b.cn/";
   $m_url2="http://$m_row[m_user].sandib2b.cn/contact.htm";
}else{
   $m_url="/cn/template/$m_row[m_user]/";
   $m_url2="/cn/template/$m_row[m_user]/contact.html";
}

if($_GET[imgid]){
  $img_rs=@mysql_query("select * from jm_img where id='$_GET[imgid]'");
  $img_row=@mysql_fetch_array($img_rs);
  $images=$img_row[picture];
}else{
  $images=$i_row[picture];
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
<HEAD>
<TITLE><?=$i_row[j_title]?>-图片展示-三帝加盟网</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="/css/body.css" type=text/css rel=stylesheet>
<LINK href="/css/link.css" type=text/css rel=stylesheet>
<LINK href="/css/head_1.css" type=text/css rel=stylesheet>
<LINK href="/css/foot.css" type=text/css rel=stylesheet>
<LINK href="/css/content.css" type=text/css rel=stylesheet>
<LINK href="/css/application.css" type=text/css rel=stylesheet>
<LINK href="/css/carousel.css" type=text/css rel=stylesheet>
<SCRIPT src="/js/prototype.js" type=text/javascript></SCRIPT>
<SCRIPT src="/js/effects.js" type=text/javascript></SCRIPT>
<SCRIPT src="/js/carousel.js" type=text/javascript></SCRIPT>
<STYLE type=text/css>#Layer1 {
	WIDTH: 260px; POSITION: absolute; TOP: 224px; HEIGHT: 230px
}
</STYLE>
</HEAD>
<BODY>
<DIV class=top>
<DIV class=topbox>
<DIV class=topleft>欢迎来到三帝贸易网&nbsp;<SPAN class=301688><A 
href="http://www.301688.com/" target=_blank>301688.com</A></SPAN> &nbsp; [<A 
href="http://www.sandib2b.cn/login/">登陆</A>] [<A 
href="http://www.sandib2b.cn/join/">免费注册</A>]</DIV>
<DIV class=topright><A 
onclick="var strHref=window.location.href;this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.sandib2b.cn');" 
href="http://www.sandib2b.cn/supply-img/451861.html#">设为首页</A> | <A title=三帝贸易网 
style="CURSOR: hand" 
onclick="javascript:window.external.AddFavorite('http://www.sandib2b.cn','三帝贸易网')" 
href="http://www.sandib2b.cn/supply-img/451861.html#">添加收藏</A> | <A 
href="http://www.sandib2b.cn/about">客服中心</A> | <SPAN class=301688><A 
href="http://www.made-in-globe.com/" target=_blank>English</A></SPAN></DIV>
<DIV class=onl></DIV></DIV></DIV>
<DIV class=top1>
<DIV style="FLOAT: left; WIDTH: 388px" class="topside6"><A href="/">
<IMG src="/images/logo.gif" alt=三帝贸易网 width="236" height="60" border=0></A></DIV>
<DIV class=top2menu><A href="http://www.sandib2b.cn/">三帝首页</A> <A class=hover 
href="http://www.sandib2b.cn/supply">供应</A> <A 
href="http://www.sandib2b.cn/buy">求购</A> <A 
href="http://www.sandib2b.cn/company">公司库</A> 
<DIV class=onl></DIV></DIV>
<DIV class=top2search>
<FORM onSubmit="return prosearch()" action=/supply/search.php method=get>
<UL>
  <LI style="WIDTH: 20px; PADDING-TOP: 1px"></LI>
  <LI><INPUT class=input id=subject name=subject> </LI>
  <LI style="PADDING-TOP: 1px"><INPUT type=image src="/images/3.gif"> 
</LI></UL></FORM>
<DIV class=onl></DIV></DIV>


<DIV class=onl></DIV></DIV>
<DIV class="topside6 side" id=mian>
<DIV class=title1><A href="http://jm.sandib2b.cn/jiameng/xiangmu/<?=$i_row[id]?>.html">&lt;&lt; 返回 <?=$i_row[j_title]?></A></DIV>
<DIV class=onl></DIV></DIV>
<DIV class="w960 topside20 side">


<DIV class=onl></DIV></DIV>
<DIV class="topside6 sideyellow1" id=mian>
<DIV class="title4 size14 b fontwhite"><?=$i_row[j_title]?></DIV>
<DIV class="leftmain topside6">

<DIV align=center><INPUT onclick=imgToSize(1); type=button value=放大> <INPUT onclick=imgToSize(0); type=button value=缩小> <INPUT onclick=imgRoll(); type=button value=翻转90°> <INPUT onClick="imgReverse('H');" type=button value=水平翻转> <INPUT onClick="imgReverse('V');" type=button value=垂直翻转></DIV>
<br>
<DIV align="center">
<IMG onmouseup=mEnd(); onmousedown=mStart(); id=oImg style="CURSOR: move; ZOOM: 100%; POSITION: relative" src="http://img.sandib2b.cn/<?=$images?>" <?=imgstr("http://img.sandib2b.cn/$images","680","500")?>>
</DIV>
<br>


<?php
$rs=@mysql_query("select * from jm_img where jm_id='$i_row[id]' order by id asc limit 10");
$rs_count=@mysql_result($rs,0);
if($rs_count)
{
?>

<DIV>
<DIV style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">
<DIV class=wrapper>
<DIV id=prev-arrow-container><IMG id=prev-arrow height=144 alt=Left3-disabled 
src="/images/left3-disabled.gif" width=27></DIV>
<DIV class=carousel-component id=html-carousel>
<DIV class="carousel-clip-region wh">
<UL class=carousel-list>

<?php
while($row=@mysql_fetch_array($rs)){
?>
  <LI><A href="/jiameng/img/<?=$i_row[id]?>-<?=$row['id']?>.html" target=_blank><IMG class=thumb height=100 
  src="http://img.sandib2b.cn/<?=$row[picture]?>" width=100 border=0><?=$row[img_title]?></A> </LI>
 <?php }?>
 
</UL>
</DIV></DIV>
<SCRIPT type=text/javascript>
function initCarousel_html_carousel() {carousel = new Carousel('html-carousel', {animHandler:animHandler, animParameters:{duration:0.5}, buttonStateHandler:buttonStateHandler, nextElementID:'next-arrow', prevElementID:'prev-arrow', size:31})};Event.observe(window, 'load', initCarousel_html_carousel);
</SCRIPT>

<DIV id=next-arrow-container><IMG id=next-arrow height=144 alt=Right3-enabled src="/images/right3-enabled.gif" width=27></DIV>
<BR class=clear>
<SCRIPT type=text/javascript>
<!--
function buttonStateHandler(button, enabled) {
 if (button == "prev-arrow") 
   $('prev-arrow').src = enabled ? "/images/left3-enabled.gif" : "/images/left3-disabled.gif"
 else 
   $('next-arrow').src = enabled ? "/images/right3-enabled.gif" : "/images/right3-disabled.gif"
}

function animHandler(carouselID, status, direction) {
  var region = $(carouselID).down(".carousel-clip-region")
  if (status == "before") {
    Effect.Fade(region, {to: 0.3, queue: { position:'end', scope: "carousel" }, duration: 0.2})
  }
  if (status == "after") {
    Effect.Fade(region, {to: 1, queue: { position:'end', scope: "carousel" }, duration: 0.2})
  }
}
//-->
</SCRIPT>
</DIV>
</DIV>
</DIV>
<?php } ?>










<DIV style="MARGIN: 20px" align=center>

</DIV></DIV>
<div class="rightmain topside6 rightside6 downside6">
  <ul class="companyinfo">
    <li><span class="size18 fontblue"><?=$m_row['m_cname']?></span></li>
    <li class="topside6">&nbsp;<a href="<?=$m_url?>" target="_blank"><img src="/images/home.gif" width="104" height="29" border="0" /></a>&nbsp;<a href="<?=$m_url2?>" target="_blank"><img src="/images/contact.gif" alt="联系方式" width="120" height="29" border="0" /></a></li>
    <li>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$m_url2?>" target="_blank">公司介绍</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="<?=$m_url2?>" target="_blank">公司产品</a></li>
    <li>&nbsp;&nbsp;&nbsp;&nbsp;联系人：<?=$m_row[m_name]?>[<?=$m_row[m_sex]?>]</li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;企业类型：<?=$m_row['c_type']?></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;经营模式：<?=$m_row['c_mode']?></li>
<li>&nbsp;&nbsp;&nbsp;&nbsp;会员等级：<?php if($m_row['m_type']==6){?><a href="<?=$m_url?>certificate.htm" target="_blank"><img src="/images/member.gif" border="0" align="absmiddle" /></a><?php }else{echo "普通会员";}?></li>
<?php if($m_row[m_ts_tel]){?><li>&nbsp;&nbsp;&nbsp;&nbsp;<span class="tel400">免费电话：<b class="fontred"><?=$m_row[m_ts_tel]?></b></span></li><?php }?>
    </ul>
</div>

<DIV class=onl></DIV></DIV>
<DIV class="topside6 sideyellow1" id=mian>
<DIV class="title3 size12"><SPAN>相关加盟信息</SPAN> 
  <DIV class=onl></DIV></DIV>
<DIV class=company>
<UL>
<?php
$rs=@mysql_query("select * from jm_list where type_id2='$i_row[type_id2]' order by id desc limit 6");
while($row=@mysql_fetch_array($rs)){
?>
<LI>
<A href="http://jm.sandib2b.cn/jiameng/xiangmu/<?=$row['id']?>.html"><IMG height=125 src="http://img.sandib2b.cn/<?=$row[picture]?>" width=120 border=0></A>
<SPAN><A href="http://jm.sandib2b.cn/jiameng/xiangmu/<?=$row['id']?>.html"><?=mb_substr($row[j_title],0,12,'utf-8')?></A></SPAN> 
</LI>
<?php }?>

</UL>
<DIV class=onl></DIV></DIV>
<DIV class=onl></DIV></DIV>
<?php include("foot.php");?>

<SCRIPT language=javascript>
   function imgToSize(oBool) {
     var oImg = document.all('oImg');
     oImg.style.zoom = parseInt(oImg.style.zoom) + (oBool ? 30 : -30) + '%';
   }
   var oArcSize = 1;
   function imgRoll() {
     var oImg = document.all('oImg');
     oImg.style.filter = 'Progid:DXImageTransform.Microsoft.BasicImage(Rotation='+ oArcSize +')';
     oArcSize += 1;
     oArcSize = oArcSize==4 ? 0 : oArcSize ;
   }
   function imgReverse(arg) {
     var oImg = document.all('oImg');
     oImg.style.filter = 'Flip' + arg;
   }
   var oBoolean = false, oLeftSpace = 0, oTopSpace=0;
   function mStart() {
      oBoolean = true;
      if (oBoolean) {
         var oImg = document.all('oImg');
		 oLeftSpace = window.event.clientX - oImg.style.pixelLeft;
         oTopSpace = window.event.clientY - oImg.style.pixelTop;
      }
   }
   function mEnd() {
      oBoolean = false;
   }
   function document.onmousemove() {
      if (window.event.button==1 && oBoolean) {
         var oImg = document.all('oImg');
         oImg.style.pixelLeft = window.event.clientX - oLeftSpace;
         oImg.style.pixelTop = window.event.clientY - oTopSpace;
         return false;
      }
   }
</SCRIPT>
</BODY></HTML>
